package cn.cs.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface RepairBbsMapper {
    public int insertBbsByMap(Map<String, Object> bbs);

    public void insertBbsImg(Map<String, Object> map);

    public int insertReply(Map<String, Object> reply);

    public int updateBBSRecommend(Map<String, Object> reply);

    public void insertReplyImg(Map<String, Object> map);

    public List<Map<String,Object>> getBbsList(Map<String, Object> param);

    public Map<String,Object> getBbsById(String id);

    public List<Map<String,Object>> getReplyByBbsId(String id);

    public List<Map<String,Object>> getBbsTypes();

    public  List<Map<String,Object>> getBbslb();

    public List<Map<String,Object>> getBbsMsg(String id);

    public List<Map<String,Object>> getBbsImages(String id);

    public Map<String,Object> getReplyById(String bbs_id);

    public void updateBbs(Map<String, Object> bbsMap);

    public List<Map<String, Object>> getRepairBbsListByMap(Map<String, Object> param) throws Exception;

    public Integer getRepairBbsCountByMap(Map<String, Object> param) throws Exception;

    public List<Map<String,Object>> getReplyTree(@Param(value = "id") String id);

    public int getIsReadCount(String id);

    public int readBBsReply(String id);

}
